<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ include file="/WEB-INF/page/share/taglib.jsp"  %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>修改小说</title>
  </head>
  
  <body>
  		
   		<form action="/control/book/updatebook" method="post">
   		
   			<input type="hidden" name="bookInfo.id" value="${bookInfo.id }"/>
   			小说标题：<input type="text" name="bookInfo.title" value="${bookInfo.title}"/><br/>
   			小说作者：<input type="text" name="bookInfo.author" value="${bookInfo.author}"/><br/>
   			小说状态：<input type="radio" name="bookInfo.isfinish" <c:if test="${bookInfo.isfinish }">checked="checked"</c:if>  value="true"/>已完结
   					<input type="radio" name="bookInfo.isfinish" <c:if test="${!bookInfo.isfinish }">checked="checked"</c:if>  value="false"/>连载中<br/>
   			小说简介：<textarea name="bookInfo.intro" style="width: 50%; height: 50%;">${bookInfo.intro}</textarea><br/>
   			
   			小说类型：<select name="bookInfo.booktype">
   						<c:forEach items="${bookTypes }" var="bookType">
   							<option <c:if test="${bookInfo.booktype == bookType.id }">selected="selected"</c:if> value="${bookType.id }">${bookType.name }</option>
   						</c:forEach>
   				</select><br>
   			推荐星级：<select name="bookInfo.stars">
   						<option <c:if test="${bookInfo.stars == 0 }">selected="selected"</c:if> value="0">不推荐</option>
   						<option <c:if test="${bookInfo.stars == 1 }">selected="selected"</c:if> value="1">1星推荐</option>
   						<option <c:if test="${bookInfo.stars == 2 }">selected="selected"</c:if> value="2">2星推荐</option>
   						<option <c:if test="${bookInfo.stars == 3 }">selected="selected"</c:if> value="3">3星推荐</option>
   						<option <c:if test="${bookInfo.stars == 4 }">selected="selected"</c:if> value="4">4星推荐</option>
   						<option <c:if test="${bookInfo.stars == 5 }">selected="selected"</c:if> value="5">5星推荐</option>
   				</select><br>
   			点击量：<input type="text" name="bookInfo.hit" value="${bookInfo.hit}"/><br/>
   			<input type="submit" value="提交"/>
   		</form>		
  </body>
</html>
